<?php
/**
 * Created by PhpStorm.
 * User: wangjie
 * Date: 2018/11/7
 * Time: 14:28
 */
namespace api\controllers;

use Yii;
use common\services\ToolIdentityService;

class IdentityController extends BaseController
{
    /**
     * 根据身份证号获取基础信息
     * @return array
     */
    public function actionIndex()
    {
        $idCard = trim($this->request->post('id_card', 0));
        $result = ToolIdentityService::idCardAnalysis($idCard);
        return $this->endReponse('0',$result);
    }
}